Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

π”Ύβ‚œ exponentiation, with endomorphism acceleration #429

Merged
merged 4 commits into from
Jul 14, 2024
Merged

Conversation

mratsim
Copy link
Owner

@mratsim mratsim commented Jul 14, 2024

This PR adds a performance baseline for Whisk in GT.

https://ethresear.ch/t/the-return-of-torus-based-cryptography-whisk-and-curdleproof-in-the-target-group/16678

Here is the speed on a 7840U:

image

For comparison here is scalar mul on G1
image

and on G2
image

Hence exponentiation in Gt (131 us) is within 30% of scalar mul in G2 (96 us).

cc @asanso

@mratsim
Copy link
Owner Author

mratsim commented Jul 14, 2024

Gnark bench

cd ecc/bls12-381
go test -bench=ExpGT -run=none --cpu 1

image

so 2.29x faster than Gnark.

@mratsim mratsim merged commit d8721a1 into master Jul 14, 2024
24 checks passed
@mratsim mratsim deleted the gt_exp branch July 14, 2024 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant